package com.symbio.ishenapi.background.controller;

import com.jfinal.plugin.activerecord.Record;
import com.symbio.ishenapi.background.model.TmDrugBase;
import com.symbio.ishenapi.common.controller.BaseController;
import io.jboot.web.controller.annotation.RequestMapping;

import java.util.List;

@RequestMapping("/TmDrugBaseController")
public class TmDrugBaseController extends BaseController {

    public void findTmDrugBase(){       //查看药品
        TmDrugBase user = (TmDrugBase)getReqBodyObject(TmDrugBase.class);
        TmDrugBase user1 = new TmDrugBase();
        user1.setDrugName(user.getDrugName());
        List<Record> list=TmDrugBase.dao.findTmDrugBase(user1);
        renderJsonRet(list);
    }


}
